package java虚拟机.chapter7;

/**
 * @author juntao zhang
 */
public class InvokeDynamicTest2 {

  private static class A {

    public void doWork(B b) {
      System.out.println("prev");
      b.doSomething();
      System.out.println("post");
    }
  }

  private interface B {

    void doSomething();
  }

  private void lambdaByteCodeShow() {
    new A().doWork(() -> System.out.println("lambda"));
  }
}
